package com.chinasoft.ssm.service;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface LogService {

    @Transactional(propagation = Propagation.REQUIRES_NEW) // 函数需要开启一个新事务
    void save(String from, String to, Double money, boolean flag);
}
